package com.atguigu.yygh.common.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/*-------------------------------------------------
      时 间:   2023-03-13
      讲 师:   刘  辉
      描 述:   尚硅谷教学团队
---------------------------------------------------*/
@Configuration
public class PaginationConfiguration {

    @Bean
    public PaginationInterceptor getPaginationInterceptor(){
        return new PaginationInterceptor();
    }
}
